<?php

use Illuminate\Database\Seeder;
use Carbon\Carbon;

class AdminsTableSeeder extends Seeder
{
    private $table = 'admins';

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $init = [
            'account' => 'Admin',
            'password' => bcrypt('123456'),
            'mobile' => 17621961580,
            'email' => 'test@test.com',
            'post' => '职位',
            'role' => 1,
            'login_ip' => '0.0.0.0',
            'login_time' => Carbon::now(),
            'created_at'=>Carbon::now(),
            'updated_at'=>Carbon::now(),
        ];
        DB::table($this->table)->insert($init);
//        factory(\App\Models\Admin::class, 1)->create([]);
    }
}
